<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
     <%@page import="Dao.*" %>
    <%@page import="Entity.*" %>
    <%@page import="java.util.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>教师信息查询结果</title>
</head>
<body>
<link rel="stylesheet" href="<%=request.getContextPath() %>/css/administratorPage.css" type="text/css"></link>
<div class="header">
		<font size='6' color="#FF0000"><br />&emsp;&emsp;&emsp;教师信息查询结果</font>
	</div>
<div class="body">
<table align="center" width="1300" border="1" class="mytable">
<tr>
<td><b>教师号</b></td>
<td><b>姓名</b></td>
<td><b>性别</b></td>
<td><b>学院</b></td>
<td><b>身份证号</b></td>
<td><b>密码</b></td>
<td><b>电话</b></td>
<td colspan="2"><a href="add_Teacher.jsp" style="color: #FFFFFF; text-decoration: none">添加教师</a></td>
</tr>
<%String teacherNo=request.getParameter("teacherNo");
Teacher teacher=new Teacher();
if(new TeachersInformationDao().queryTeacherByNo(teacherNo)!=null){
 teacher=new TeachersInformationDao().queryTeacherByNo(teacherNo);
}
%>
<tr>
<td><%=teacher.getTeacherNo()%></td>
			<td><%=teacher.getTeacherName()%></td>
			<td><%=teacher.getSex()%></td>
			<td><%=teacher.getDept()%></td>
			<td><%=teacher.getTeacherId()%></td>
			<td><%=teacher.getPwd()%></td>
			<td><%=teacher.getTel()%></td>
			<td><a href="/UniversityResourceSystem/TeachersInformationPageServlet?opttype=delete&&teacherNo=<%=teacher.getTeacherNo()%>" style="text-decoration: none">删除</a></td>
			<td><a href="/UniversityResourceSystem/TeachersInformationPageServlet?opttype=alter&&teacherNo=<%=teacher.getTeacherNo()%>" style="text-decoration: none">修改</a></td>
</tr>
</table>
</div>
</body>
</html>